import request from '@/utils/request'

export function fetchList(query) {
    return request({
        url: '/core/coding/tmptData/myPage',
        method: 'GET',
        params: query
    })
}

export function fetchBankupByIds(params) {
  return request({
    url: '/core/coding/tmptData/selectBatchIds',
    method: 'get',
    params
  })
}

export function insertBankup(data) {
  return request({
    url: '/core/coding/tmptData/insertBankup',
    method: 'POST',
    data
  })
}

export function createApi(data) {
    return request({
        url: '/core/coding/tmptData/create',
        method: 'POST',
        data
    })
}

export function updateApi(data) {
    return request({
        url: '/core/coding/tmptData/update',
        method: 'POST',
        data
    })
}

export function deleteApi(params) {
    return request({
        url: '/core/coding/tmptData/delete',
        method: 'POST',
        params
    })
}

export function buildCode4EnumsApi(params) {
    return request({
        url: '/core/admin123/mpgenerator/buildCode4Enums',
        method: 'get',
        params
    })
}
